﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Spring.Context;
using Spring.Context.Support;
using AppToolKit.Core.Context;
using App.Contract;

namespace App.Client
{
    static class Program
    {
       
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            IApplicationContext  context_ = ContextRegistry.GetContext();
           Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);            
            Form1 form = new Form1();
            IBlockBusiness b = context_.GetObject("App.Contract.IBlockBusiness") as IBlockBusiness;

            int x= b.Add(1, 2);
          //int x=  vo.Children+100;
            form.k = x;
            Application.Run(form);
        }
    }
}
